package org.nocepko.android.sumc;

import java.io.File;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Environment;

public class SumcDatabase extends SQLiteOpenHelper {

	public final static String DB_NAME = "sumc.db";
	public final static int DB_VERSION = 1;
	
	private static String getDbPathName() {
		File dbPathFile = new File(Environment.getExternalStorageDirectory()
				.getAbsolutePath() + "/data/sumc");
		if (!dbPathFile.isDirectory()) {
			dbPathFile.mkdirs();
		}
		String dbFileName = dbPathFile.getAbsolutePath() + "/" + DB_NAME;
		return dbFileName;
	}
	
	public SumcDatabase(Context context) {
		super(context, getDbPathName(), null, DB_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}
	
	public static class Line {
		
	}
	
	public static class Stop {
		
	}
	
	public static class Direction {
		
	}

}
